package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
@create: 2022-09-26 18:18
@author: 怀念天空
@Description: 
*/

@Getter
@Setter
@ToString
@NoArgsConstructor
@TableName(value = "trans_tbl")
public class Trans {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 0 货物，1 物资
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 0 单车，1 铁路
     */
    @TableField(value = "trans_type")
    private Integer transType;

    /**
     * 路线/专线
     */
    @TableField(value = "route")
    private Integer route;

    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    private GoodsOrder goodsOrder;

    @TableField(exist = false)
    private RouteTbl routeTbl;

    @TableField("vehicle_id")
    private Integer vehicleId;

    @TableField("train_name")
    private String trainName;

    @TableField(exist = false)
    private VehicleInfo vehicle;

}